<template>
  <div class="yg_empty">
    <img :src="icon" alt="" />
    <span>{{ title }}</span>
  </div>
</template>

<script>
export default {
  name: "YgEmpty",
  props: {
    title: {
      type: String,
      default: "",
    },
    icon: {
      type: String,
      default: require("@/assets/icons/icon_empty_500.png"),
    },
  },
};
</script>

<style lang="scss" scoped>
.yg_empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  width: 100%;
  height: 100%;
  & > img {
    width: 50%;
  }
  & > span {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
  }
}
</style>
